#!/usr/bin/env python

class signals:

   def __init__(self,blend):
      self.blend = blend;

   def on_selected(self,widget,emote):
      self.blend.gui.emoteWindow.hide();
      self.blend.gui.chatWindow._insertEmote(emote.pattern,emote.image);

   def on_custom(self,widget,shortcut,image):
      self.blend.gui.emoteWindow.hide();
      shortcut = ".{%s}" % shortcut;
      self.blend.gui.chatWindow._insertEmote(shortcut,image);